// 动态设置document的title属性
export function setDocumentTitle (title) {
  document.title = (title != null ? title : '客之家')
}

export function getScrollTop (element) {
  return ('scrollTop' in element ? element.scrollTop : element.pageYOffset)
}
